package net.slique.sf5.model.silverware;

import java.io.Serializable;


/**
 * Response from model on pre- and post-solve conditions.
 * 
 */
@SuppressWarnings("serial")
public class OkPredicateResponse implements Serializable {
	
	/**
	 * OK to continue?
	 */
	private boolean ok;
	
	/**
	 * Message back from the model.
	 */
	private String message;

	/**
	 * Is ok?
	 * 
	 * @return ok
	 */
	public boolean isOk() {
		return ok;
	}

	/**
	 * Set ok.
	 * 
	 * @param ok
	 * @return this
	 */
	public OkPredicateResponse setOk(boolean ok) {
		this.ok = ok;
		return this;
	}

	/**
	 * Get message.
	 * 
	 * @return message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * Set message.
	 * 
	 * @param message
	 * @return this
	 */
	public OkPredicateResponse setMessage(String message) {
		this.message = message;
		return this;
	}
}
